<?php
/* Smarty version 3.1.29, created on 2017-06-26 14:34:03
  from "D:\amp\web\mvc_blog\app\admin\view\Category\categoryEdit.html" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_5950aadb39aa90_96308722',
  'file_dependency' => 
  array (
    'b5e63080e1f617aea5cceb8d984fb2078bfe3179' => 
    array (
      0 => 'D:\\amp\\web\\mvc_blog\\app\\admin\\view\\Category\\categoryEdit.html',
      1 => 1498373472,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:public/head.html' => 1,
    'file:public/ghead.html' => 1,
    'file:public/nav.html' => 1,
    'file:public/footer.html' => 1,
  ),
),false)) {
function content_5950aadb39aa90_96308722 ($_smarty_tpl) {
?>

<?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:public/head.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

<div class="wrapper">

    <!-- START HEADER -->
    
    <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:public/ghead.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

    <!-- END HEADER -->

    <!-- START MAIN -->
    <div id="main">
        <!-- START SIDEBAR -->
        
        <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:public/nav.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

        <!-- END SIDEBAR -->

        <!-- START PAGE -->
        <div id="page">
            <!-- start page title -->
            <div class="page-title">
                <div class="in">
                    <div class="titlebar">	<h2>分类管理</h2>	<p>编辑分类</p></div>

                    <div class="clear"></div>
                </div>
            </div>
            <!-- end page title -->

            <!-- START CONTENT -->
            <div class="content">
                <div class="simplebox grid740" style="z-index: 720;">
                    <div class="titleh" style="z-index: 710;">
                        <h3>编辑分类</h3>
                    </div>
                    <div class="body" style="z-index: 690;">

                        <form id="form2" name="form2" method="post" action="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
?p=admin&m=Cat&a=upd&id=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
">
						<!-- <input type="hidden" name="p" value="back"/> -->
						<!-- <input type="hidden" name="m" value="category"/> -->
						<!-- <input type="hidden" name="a" value="update"/> -->
						<!-- <input type="hidden" name="id" value="12"/> -->
                            <div class="st-form-line" style="z-index: 680;">
                                <span class="st-labeltext">分类名字</span>
                                <input name="name" type="text" class="st-forminput" style="width:510px" value="<?php echo $_smarty_tpl->tpl_vars['row']->value['name'];?>
">
                                <div class="clear" style="z-index: 670;"></div>
                            </div>
                            <div class="st-form-line" style="z-index: 640;">
                                <span class="st-labeltext">父分类</span>
                                <select name="parent_id" class="uniform">
                                    <option  value="0" <?php if ($_smarty_tpl->tpl_vars['row']->value['parent_id'] == 0) {?>selected="selected" <?php }?>>无</option>

                                    <?php
$_from = $_smarty_tpl->tpl_vars['tree']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_category_0_saved_item = isset($_smarty_tpl->tpl_vars['category']) ? $_smarty_tpl->tpl_vars['category'] : false;
$__foreach_category_0_saved_key = isset($_smarty_tpl->tpl_vars['k']) ? $_smarty_tpl->tpl_vars['k'] : false;
$_smarty_tpl->tpl_vars['category'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['category']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['category']->value) {
$_smarty_tpl->tpl_vars['category']->_loop = true;
$__foreach_category_0_saved_local_item = $_smarty_tpl->tpl_vars['category'];
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['category']->value['id'];?>
" <?php if ($_smarty_tpl->tpl_vars['row']->value['parent_id'] == $_smarty_tpl->tpl_vars['category']->value['id']) {?> selected="selected" <?php }?>><?php echo str_repeat('--',$_smarty_tpl->tpl_vars['category']->value['level']);?>
 <?php echo $_smarty_tpl->tpl_vars['category']->value['name'];?>
</option>
                                    <?php
$_smarty_tpl->tpl_vars['category'] = $__foreach_category_0_saved_local_item;
}
if ($__foreach_category_0_saved_item) {
$_smarty_tpl->tpl_vars['category'] = $__foreach_category_0_saved_item;
}
if ($__foreach_category_0_saved_key) {
$_smarty_tpl->tpl_vars['k'] = $__foreach_category_0_saved_key;
}
?>

                                    <!--<option  value="1" >科技</option>-->
									<!--<option  value="2" >&#45;&#45;计算机</option>-->
									<!--<option  value="17" >&#45;&#45;&#45;&#45;笔记本</option>-->
									<!--<option  value="3"  selected="selected" >&#45;&#45;航空航天</option>-->
									<!--<option  value="5" >&#45;&#45;&#45;&#45;火星计划</option>-->
									<!--<option  value="6" >美食</option>-->
									<!--<option  value="7" >&#45;&#45;湘菜</option>-->
									<!--<option  value="12" >&#45;&#45;&#45;&#45;口味虾</option>-->
									<!--<option  value="13" >&#45;&#45;&#45;&#45;口味蛇</option>-->
									<!--<option  value="14" >&#45;&#45;&#45;&#45;口味蛙</option>-->
									<!--<option  value="15" >&#45;&#45;&#45;&#45;宫保鸡丁</option>-->
									<!--<option  value="16" >&#45;&#45;&#45;&#45;黄鸭叫</option>-->
									<!--<option  value="8" >&#45;&#45;川菜</option>-->
									<!--<option  value="9" >&#45;&#45;粤菜</option>-->
									<!--<option  value="11" >&#45;&#45;徽菜</option>-->

                                </select>
                                <div class="clear"></div>
                            </div>
                            <div class="st-form-line" style="z-index: 680;">
                                <span class="st-labeltext">排序</span>
                                <input name="sort" type="text" class="st-forminput" style="width:510px" value="100">
                                <div class="clear" style="z-index: 670;"></div>
                            </div>
                            <div class="button-box" style="z-index: 460;">
                                <input type="submit" name="button" id="button" value="提交" class="st-button">
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <!-- END CONTENT -->
        </div>
        <!-- END PAGE -->
        <div class="clear"></div>
    </div>
    <!-- END MAIN -->

    <!-- START FOOTER -->
    
    <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:public/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
